﻿using System;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace NotesBook
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DevComponents.DotNetBar.LocalizationKeys.LocalizeString += new DevComponents.DotNetBar.DotNetBarManager.LocalizeStringEventHandler(LocalizeString);
            Application.Run(new FormMain());
        }

        static void LocalizeString(object sender, DevComponents.DotNetBar.LocalizeEventArgs e)
        {
            if (e.Key == LocalizationKeys.ColorPickerDialogColorModelLabel)
            {
                e.LocalizedValue = "颜色模式(&D):";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogOKButton)
            {
                e.LocalizedValue = "确定";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogCancelButton)
            {
                e.LocalizedValue = "取消";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogBlueLabel)
            {
                e.LocalizedValue = "蓝色(&B):";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogGreenLabel)
            {
                e.LocalizedValue = "绿色(&G):";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogRedLabel)
            {
                e.LocalizedValue = "红色(&R):";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogNewColorLabel)
            {
                e.LocalizedValue = "新增";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogCurrentColorLabel)
            {
                e.LocalizedValue = "当前";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogCustomColorsLabel)
            {
                e.LocalizedValue = "颜色(&C)";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerDialogStandardColorsLabel)
            {
                e.LocalizedValue = "颜色(&C)";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerMoreColorsMenuItem)
            {
                e.LocalizedValue = "其他颜色(&M)...";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerStandardColorsLabel)
            {
                e.LocalizedValue = "标准色";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerTabCustom)
            {
                e.LocalizedValue = "自定义";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerTabStandard)
            {
                e.LocalizedValue = "标准";
                e.Handled = true;
            }
            else if (e.Key == LocalizationKeys.ColorPickerThemeColorsLabel)
            {
                e.LocalizedValue = "主题颜色";
                e.Handled = true;
            }
        }
    }
}
